﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;


namespace SyCODE.Blog
{
    /// <summary>
    /// ConstDataNode 的摘要说明
    /// </summary>
    public class ConstDataNode
    {
        private string value;

        private Hashtable nodes;

        public string Value
        {
            get
            {
                return this.value;
            }
        }
        public ConstDataNode(string value)
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
            this.value = value;

            this.nodes = new Hashtable();
        }

        public void AddNode(string key, ConstDataNode node)
        {
            if (!this.nodes.ContainsKey(key))
                this.nodes.Add(key, node);
        }

        public ConstDataNode this[string key]
        {
            get
            {
                return (ConstDataNode)this.nodes[key];
            }
        }
    }
}